88064e5dd5643e0d491fc2ddb9e1c7b6df5ddd5c,src/main/java/com/googlecode/lanterna/gui2/CheckBoxList.java,CheckBoxListItemRenderer,drawItem,#TextGUIGraphics#CheckBoxList#number#V#boolean#boolean#,223

Before Change


            graphics.putString(4, 0, text);

            if(focused) {
                graphics.applyThemeStyle(themeDefinition.getPreLight());
            }
            else {
                graphics.applyThemeStyle(themeDefinition.getInsensitive());
            }
            graphics.setCharacter(0, 0, themeDefinition.getCharacter("LEFT_BRACKET", '['));
            graphics.setCharacter(2, 0, themeDefinition.getCharacter("RIGHT_BRACKET", ']'));
            graphics.setCharacter(3, 0, ' ');

After Change


        }

        @Override
        public void drawItem(TextGUIGraphics graphics, CheckBoxList<V> listBox, int index, V item, boolean selected, boolean focused) {
            ThemeDefinition themeDefinition = listBox.getTheme().getDefinition(CheckBoxList.class);
            ThemeStyle itemStyle;
            if(selected && !focused) {
                itemStyle = themeDefinition.getSelected();
            }
            else if(selected && focused) {
                itemStyle = themeDefinition.getActive();
            }
            else if(!selected && focused) {
                itemStyle = themeDefinition.getInsensitive();
            }
            else {
                itemStyle = themeDefinition.getNormal();
            }

            graphics.applyThemeStyle(itemStyle);
            graphics.fill(' ');

            String brackets = themeDefinition.getCharacter("LEFT_BRACKET", '[') +
                    " " +
                    themeDefinition.getCharacter("RIGHT_BRACKET", ']');
            if(themeDefinition.getBooleanProperty("FIXED_BRACKET_COLOR", false)) {
                graphics.applyThemeStyle(themeDefinition.getPreLight());
                graphics.putString(0, 0, brackets);
                graphics.applyThemeStyle(itemStyle);
            }
            else {
                graphics.putString(0, 0, brackets);